{{-- <li class="dd-item" data-id="1">
        <div class="dd-handle">Item 1</div>
    </li>
    <li class="dd-item" data-id="2">
        <div class="dd-handle">Item 2</div>
    </li>
    <li class="dd-item" data-id="3">
        <div class="dd-handle">Item 3</div>
        <ol class="dd-list">
            <li class="dd-item" data-id="4">
                <div class="dd-handle">Item 4</div>
                <ol class="dd-list">
                    <li class="dd-item" data-id="4">
                        <div class="dd-handle">Item 4</div>
                    </li>
                    <li class="dd-item" data-id="5" data-foo="bar">
                        <div class="dd-handle">Item 5</div>
                    </li>
                </ol>
            </li>
            <li class="dd-item" data-id="5" data-foo="bar">
                <div class="dd-handle">Item 5</div>
            </li>
        </ol>
</li> --}}
@foreach($menus as $menu)
<ol class="dd-list">
<li class="dd-item" data-id="{{$menu['id']}}">
        <div class="dd-handle">{{$menu['name']}}</div>
        @if(isset($menuList[$menu['id']]))
           @include('backend.menu._child', ['menus' => $menuList[$menu['id']]])
        @endif
</li>
</ol>


@endforeach